<template>
    <view class="page">
    	<image class="bg" src="../../static/img/bg_common.jpg"></image>
    	<view class="wrap">
			<view class="item" v-for="(item,index) in list" :key="index">
				<image :src="item.img" class="img"></image>
				<view class="info">
					<view class="tt">{{item.name}}</view>
					<view class="desc">{{item.desc}}</view>
				</view>
			</view>
		</view>
		<view class="footer">
			<image @tap="apply" class="btn" src="../../static/img/btn_apply_ruiya.png"></image>
		</view>
    </view>
</template>

<script>
    import {
        mapState,
        mapMutations
    } from 'vuex'
	
	import http from "@/common/http.js"
	import model from "@/common/model.js"

    export default {
        data(){
			return{
				list:[{
					img:"http://imgsrc.baidu.com/forum/w%3D580/sign=4db619dcfd246b607b0eb27cdbf91a35/d785b1cc7cd98d10f2564bbe2a3fb80e7aec901c.jpg",
					name:"升学专属咨询",
					desc:"涵盖各学龄阶段（目前仅限上海市）"
				},{
					img:"http://imgsrc.baidu.com/forum/w%3D580/sign=4db619dcfd246b607b0eb27cdbf91a35/d785b1cc7cd98d10f2564bbe2a3fb80e7aec901c.jpg",
					name:"升学专属咨询",
					desc:"涵盖各学龄阶段（目前仅限上海市）"
				},{
					img:"http://imgsrc.baidu.com/forum/w%3D580/sign=4db619dcfd246b607b0eb27cdbf91a35/d785b1cc7cd98d10f2564bbe2a3fb80e7aec901c.jpg",
					name:"升学专属咨询",
					desc:"涵盖各学龄阶段（目前仅限上海市）"
				},{
					img:"http://imgsrc.baidu.com/forum/w%3D580/sign=4db619dcfd246b607b0eb27cdbf91a35/d785b1cc7cd98d10f2564bbe2a3fb80e7aec901c.jpg",
					name:"升学专属咨询",
					desc:"涵盖各学龄阶段（目前仅限上海市）"
				},{
					img:"http://imgsrc.baidu.com/forum/w%3D580/sign=4db619dcfd246b607b0eb27cdbf91a35/d785b1cc7cd98d10f2564bbe2a3fb80e7aec901c.jpg",
					name:"升学专属咨询",
					desc:"涵盖各学龄阶段（目前仅限上海市）"
				},{
					img:"http://imgsrc.baidu.com/forum/w%3D580/sign=4db619dcfd246b607b0eb27cdbf91a35/d785b1cc7cd98d10f2564bbe2a3fb80e7aec901c.jpg",
					name:"升学专属咨询",
					desc:"涵盖各学龄阶段（目前仅限上海市）"
				}]
			}
		},
		onReady() {
			this.getList()
		},
		onPullDownRefresh() {
			this.getList()
		},
		methods:{
			getList(){
				// http.post()
				// this.list = [xxx]
			},
			apply(){
				uni.navigateTo({
					url:"../apply/apply"
				})
			}
		}
	}
</script>

<style scoped lang="less">

	.page{
		width: 100%;
		min-height: 100%;
		  margin: 0;
		  padding: 0;
		  position: relative;
	}
	.bg{
		z-index: -1;
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;left: 0;right: 0;
	}
	.footer{
		z-index: 20;
		position: fixed;
		bottom: 0;left: 0;right: 0;
		width: 100%;
		height: 110rpx;
		background: rgba(0,0,0,0.6);
		display: flex;
		align-items: center;
		justify-content: center;
		.btn{
			width: 639rpx;
			height: 111rpx;
		}
	}
	.wrap{
		width: 100%;
		z-index: 10;
		display: flex;
		flex-direction: column;
		align-items: center;
		.item{
			width: 670rpx;
			border-radius: 12rpx;
			margin-top: 40rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			overflow: hidden;
			.img{
				width: 670rpx;
				height:230rpx;
				background: #EFEFF4;
			}
			.info{
				width: 100%;
				height: 70rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				background: white;
				.tt{
					margin-left: 30rpx;
					font-size: 30rpx;
					color: #6b5e40;
				}
				.desc{
					flex: 1;
					margin-right: 30rpx;
					font-size: 22rpx;
					margin-left: 20rpx;
					color: #98815e;
				}
			}
		}
		.item:last-child{
			margin-bottom: 150rpx;
		}
	}
</style>
